home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
ISDATE.DOC
< prev
next >
Wrap
Text File
|
1995-12-18
|
916b
|
31 lines
------------------------------------------------------------------------
ISDATE compare dates Ver 1.2 (c) 1994 Horst Schaeffer
------------------------------------------------------------------------
Syntax:
ISDATE date1 [not] [=|equal|before|after] date2
date: format according to COUNTRY (!) but any delimiters
or: date of file (filespec)
or: TODAY
returns errorlevel:
0: TRUE
1: FALSE
255: file not found or syntax error (with message to STDOUT)
Examples:
ISDATE TODAY 1-1-2000 (default: equal)
ISDATE file.ext NOT BEFORE 11-11-93
ISDATE file.ext AFTER A:\file.ext
ISDATE \temp\file.ext BEFORE TODAY
Notes:
time is not checked
files must exist, else: error
words not case sensitive, year with 2 or 4 digits
specified dates must be valid for correct result
= 17 FEB 1995